FILETYPE=jpg
FILENAME=figure_1-1

all: ${FILENAME}.${FILETYPE}

# dot neato twopi circo fdp sfdp
${FILENAME}.${FILETYPE} : ${FILENAME}.dot Makefile
	#dot -Gdpi=640 -T${FILETYPE} ${FILENAME}.dot -o $@
	dot -T${FILETYPE} ${FILENAME}.dot -o $@

.PHONY: clean view
clean:
	rm -rf *.${FILETYPE}

view: clean all
	@killall qiviewer || :
	@qiviewer ${FILENAME}.${FILETYPE} &
